---
title: "Accessibility Checker Rule Help: WCAG20_Img_TitleEmptyWhenAltNull"
---
import "../../../styles/ToolHelp.scss"
import { CodeSnippet, Tag } from "carbon-components-react";

<div className="toolHelp">
<Row>
<Column colLg={16} colMd={8} colSm={4} className="toolHead">

### The image `alt` text attribute is empty, but the `title` attribute is not empty

<div id="locLevel"></div>

When the image `alt` text attribute is empty, the `title` attribute must also be empty

</Column>
</Row>
<Row>
<Column colLg={11} colMd={5} colSm={4} className="toolMain">

### Why is this important?

When an image is decorative and has an empty `alt` attribute, the `title` attribute should not be included. This ensures the image is ignored by assistive technologies.

<div id="locSnippet"></div>

### What to do

* Use a null `alt` text attribute and no `title` attribute on an image that assistive technologies should ignore.

For example:

<CodeSnippet type="single" light={true}>&lt;img src="squiggle.gif" width="20" height="20" alt="" /&gt;</CodeSnippet>

</Column>
<Column colLg={5} colMd={3} colSm={4} className="toolLeft">

### About this requirement

[IBM 1.1.1 Non-text content](https://www.ibm.com/able/requirements/requirements/#1_1_1)
[WCAG 2.1 technique H67](https://www.w3.org/TR/WCAG20-TECHS/H67)

### Who does this affect?

* Blind people using screen readers

</Column>
</Row>
</div>

export default ({ children, _frontmatter }) => (<React.Fragment>{children}</React.Fragment>)
